package pantallas;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JScrollPane;
import javax.swing.JTextPane;
import javax.swing.ListModel;
import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class ReporteCantidadPedidos extends javax.swing.JFrame {
	private JScrollPane jScrollPane1;
	private JButton cmdSalir;
	private JButton cmdProcesar;
	private JTextPane txtFacturacionPorMesa;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				ReporteCantidadPedidos inst = new ReporteCantidadPedidos();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public ReporteCantidadPedidos() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			{
				jScrollPane1 = new JScrollPane();
				getContentPane().add(jScrollPane1);
				jScrollPane1.setBounds(12, 7, 373, 235);
				{
					txtFacturacionPorMesa = new JTextPane();
					jScrollPane1.setViewportView(txtFacturacionPorMesa);

				}
			}
			{
				cmdProcesar = new JButton();
				getContentPane().add(cmdProcesar);
				cmdProcesar.setText("Procesar");
				cmdProcesar.setBounds(12, 248, 160, 21);
				cmdProcesar.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						txtFacturacionPorMesa.setText("Total de Pedidos En Salon: 8 \nTotal de Pedidos Por Delivery: 7");
						
					}
				});

			}
			{
				cmdSalir = new JButton();
				getContentPane().add(cmdSalir);
				cmdSalir.setText("Salir");
				cmdSalir.setBounds(233, 248, 148, 21);
				cmdSalir.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						System.out.println("cmdSalir.actionPerformed, event="+evt);
						dispose();
					}
				});
			}
			pack();
			setSize(400, 300);
			setTitle("Reporte Cantidad de Pedidos");
			//MEDIDAS Y CENTRALIZACION DE LA PANTALLA.
	        Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
	        int w = this.getSize().width;
	        int h = this.getSize().height;
	        int x = (dim.width-w)/2;
	        int y = (dim.height-h)/2;
	        this.setLocation(x, y);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}
